/**
 * 
 */
package org.cuatrovientos.exercise6;

import java.util.Scanner;

/**
 * @author mikel_luquin
 *
 */
public class Exercise6 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		//1._ Define variables
		int counter = 0;
		int number = 0;
		int result= 1;
		String line ="";
		
		
		Scanner reader = new Scanner(System.in);
		
		//2._Ask for a number
		System.out.print("Introduce a number: ");
		line = reader.nextLine();
		//3._ Transform to integer
		number = Integer.parseInt(line);
		//4._ Calculate the factorial
		for(int i=number;i>1;i--) {
			result=result*i;			
			}
		System.out.println(result);

	}
}
